package hdf5.gui;

import javax.swing.*;
import java.awt.*;
import java.util.List;

public class BoardFrame extends JFrame {

    public BoardFrame(int xCount, int yCount, List<double[][]> array2DList, double min, double max) {
        setTitle("HDFUtils");
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setSize(500, 500);
        setVisible(true);
        setLayout(new BorderLayout());
        HeatMap heatMap = new HeatMap(array2DList.get(0),true,Gradient.GRADIENT_HEAT, min, max);
        Player.setArray2DList(array2DList);
        Player.setMapDrawer(heatMap);
        MenuButtonBar menuButtonBar = new MenuButtonBar();
        add(heatMap,BorderLayout.CENTER);
        add(menuButtonBar, BorderLayout.NORTH);
    }


}
